<form action="index.php?r=admin/product/insertproduct" method="post" enctype="multipart/form-data" >
    <div class="form-group">
        <label>Name</label>
        <input class="form-control" style="width: 300px" name="name">
        <p class="help-block">tên danh mục</p>
    </div>
    <div class="form-group">
        <label>Info</label>
<!--        <input class="form-control" style="width: 300px" name="info">-->
        <?php $this->widget('application.extensions.eckeditor.ECKEditor', array(
            'model'=>$model,
            'attribute'=>'info',
//            'config' => array(
//                'toolbar'=>array(
//                    array( 'Source', '-', 'Bold', 'Italic', 'Underline', 'Strike' ),
//                    array( 'Image', 'Link', 'Unlink', 'Anchor' ) ,
//                ),
//            ),

        )); ?>
        <p class="help-block">Thông tin sản phẩm</p>

    </div>
    <div class="form-group">
        <label>cost</label>
        <input class="form-control" style="width: 300px" name="cost">
        <p class="help-block">Giá sản phẩm</p>
    </div>
    <div class="form-group">
        <label>image đại diện sản phẩm</label>
        <input type="file" name="file_upload">
    </div>
    <div class="form-group">
        <label>Ảnh dành cho slide </label>
        <input type="file" name="file_upload_slide[]" multiple>
    </div>
    <div class="form-group">
        <label>Loại - hãng sản xuất</label>
        <input class="form-control" style="width: 300px" name="type_id">
        <p class="help-block">Hãng sản xuất</p>
    </div>
    <div class="form-group ">
        <label>Danh mục</label>
        <select name="category_id">
            <?php foreach ($listcategory as $key => $value){
                ?>
                <option value="<?php echo $value['id'];?>"><?php echo $value['category_name'];?></option>
            <?php
            }?>
        </select>
    </div>
    <div class="form-group ">
        <label>Loai - xuất sứ</label>
        <select name="category_id">
            <?php foreach ($listtype as $key => $value){
                ?>
                <option value="<?php echo $value['id'];?>"><?php echo $value['type_name'];?></option>
            <?php
            }?>
        </select>
    </div>


    <div class="form-group">
        <div class="form-group">
            <label>Status</label>
            <div class="radio">
                <label>
                    <input type="radio" name="status" id="optionsRadios" value="1" checked> hiện
            </div>
            <div class="radio">
                <label>
                    <input type="radio" name="status" id="optionsRadios2" value="0">ẩn
                </label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <input type="submit" name="submit" value="submit">
    </div>
</form>